<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>添加文章</title>
<meta name="description" content="">
<meta name="keywords" content="">
<base href="<?php echo base_url();?>">
<link href="<?php echo base_url('application/views/css/article.css');?>" rel="stylesheet">

<link type="text/css" rel="stylesheet" href="<?php echo base_url('application/views/themes/default/css/ueditor.min.css');?>">
<script type="text/javascript" charset="utf-8" src="<?php echo base_url('application/views/ueditor.config.js');?>"></script>
<script type="text/javascript" charset="utf-8" src="<?php echo base_url('application/views/ueditor.all.min.js');?>"></script>
<script type="text/javascript" src="<?php echo base_url('application/views/lang/zh-cn/zh-cn.js');?>"></script>
</head>
<div class='main'>

	<div class="form_wrapper">

		<form action="javascript:void(0);" method="post">

			<div id='top'>
				<input type="button" name='button' class='btn' value='返回' onclick="history.back()">
				<input type="submit" name='submit' class='btn' value='保存为草稿'>
				<input type="submit" name='submit' class='btn' value='发布'>
			</div>

			<div id='middle'>
				<input type="text" name='title' class='text' placeholder='还没有标题...'>
				<input type="text" name='keyword' class='text' placeholder='还没摘要...'>
				<input list='category' class='text' placeholder='类别' style="width:6%;">
				<datalist id="category">
					<option value="one">one</option>
					<option value="two">two</option>
					<option value="three">three</option>
					<option value="three">three</option>
				</datalist>
			</div>

			<div id='content'>
				<textarea name="content" id="editor"></textarea>
			</div>

		</form>
	
	</div>

</div>
<script type="text/javascript">
    //实例化编辑器   
    //建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
    var ue = UE.getEditor('editor');
</script>
</body>
</html>